#include <iostream>
#include <string>
#include "sinhvien.h"

using namespace std;

sinhvien::sinhvien ( const string &ma, const string &ten, const int &gt
                     const int &ns, const string &que, int const &toan,
                     const int &ly, const int &hoa)
                     :ma_thi_sinh ( ma ), ho_ten ( ten ), nam_sinh ( ns ),
                     que_quan ( que ), diem_toan ( toan ), diem_ly ( ly ),
                     diem_hoa ( hoa ) {
                        if ( gt = 1 ) gioi_tinh = true;
                        else gioi_tinh = false;
                        tong_diem = diem_toan + diem_ly + diem_hoa;
                     }
                     
string sinhvien::get_ma_thi_sinh (){
    return ma_thi_sinh;
}                     

string sinhvien::get_ho_ten (){
    return ho_ten;
}

bool sinhvien::get_gioi_tinh(){
    return gioi_tinh;
}

int sinhvien::get_nam_sinh(){
    return nam_sinh;
}

string sinhvien::get_que_quan(){
    return que_quan;
}

int sinhvien::get_diem_toan(){
    return diem_toan;
}

void sinhvien::set_diem_toan( const int &diem){
    diem_toan = diem;
}
int sinhvien::get_diem_ly(){
    return diem_ly;
}

void sinhvien::set_diem_hoa( const int &diem ){
    diem_hoa = diem;
}

int sinhvien::get_diem_hoa(){
    return diem_hoa;
}

void sinhvien::set_diem_hoa( const int &diem ){
    diem_hoa = diem;
}

int sinhvien::get_tong_diem(){
    return tong_diem;
}

void sinhvien::set_tong_diem( const int &diem ){
    tong_diem = diem;
}

void sinhvien::print(){
    cout << ma_thi_sinh << " | " << ho_ten << " | ";
    if ( gioi_tinh = true ) cout << "1 | ";
    else cout << "0 | ";
    cout << nam_sinh << " | " << que_quan << " | "
    << diem_toan << " | " << diem_ly << " | " << diem_hoa  << endl;
}